import axios from "axios";
axios.defaults.baseURL = "/api"

export function findAll(){
    return axios.get("/student/list.do");
}
export function findByPage(page,pageSize){
    return axios.get(`/student/findByPage.do?page=${page}&pageSize=${pageSize}`);
}
export function search(page,pageSize,data){
    return axios.post(`/student/search.do?page=${page}&pageSize=${pageSize}`,data);
}


// http://localhost:8080/api/student/list.do
//
//             ↓
// http://localhost:9000/student/list.do